<?php
require_once '../libs/app.config.php';
session_start();
if($_SESSION['LoginId'] == false){
	header("Location:login.php");
}
error_reporting(0);
	$sql="select a.* from `".$dbpre."admin_user` a where a.id='".$_SESSION['LoginId']."'";
	$query = $tpm->query($sql);
	$row=$tpm->fetch_array($query);
	$user=array(
				'admin_name'=>$row['admin_name'],
				'last_login'=>$row['last_login']
			);
	$sqls="select * from admin_group where id='".$row['group_id']."'";
	$querys=$tpm->query($sqls);
	$rows=$tpm->fetch_array($querys);
	$group=$rows['group_name'];
require_once(INCLUDE_PATH.'template.inc.php');  //模板类及对象$tpl的加载
$tpl->assign('group',$group);
$tpl->assign('user',$user);
$tpl->display("admin_top.html");
?>